#pragma once
#include "Vertex.h"

typedef struct Box
{
	float xMin;
	float xMax;
	float yMin;
	float yMax;
	float zMin;
	float zMax;	
} MyBox;

class Model
{
	MyBox myBox;
	char  *id;
	int numberOfParts;
	GLuint * vboId1;
	GLuint * iboId1;
	GLuint ** indicesData;
	int * nIndex;

	void LoadNFG(const char * filePath, Vertex ** &vData, int * &nVertex, GLuint ** &iData, int * &nIndex);
	void LoadOBJ(const char * filePath, Vertex ** &vData, int * &nVertex, GLuint ** &iData, int * &nIndex);


public:
	Model(void);

	//void LoadNFG(const char *path);
	//void LoadOBJ(const char *path);

	void SetVboId(GLuint _vboId);
	void SetIboId(GLuint _iboId);
	void SetIndies(int _numIndices);

	MyBox GetBox();
	~Model(void);

	//New Code


	virtual int GetNumberOfParts();
	virtual GLuint * GetVboId1();
	virtual GLuint * GetIboId1();
	virtual int * GetIndexSize();

	virtual void Load1(const char * filePath);

	virtual char *GetId(void);
	virtual void SetId(const char *ID);
	void Destroy();












};


